# include <stdio.h>
int main (void)
{
	FILE * pf = fopen ("year.txt", "w");
	if (pf == NULL)
	{
		perror("fopen");
		return 1;
	}
	
	int i;
	for (i = 1000; i <= 3000; i += 4)
		{
			if (((i % 4 == 0) ||(i % 100 == 0)) && (i % 400 != 0))
			fprintf (pf, "%-6d", i);
		}
		
	fclose(pf);
	pf = NULL;
	
	return 0;
}
